package com.testword.entity.po;

import java.io.Serializable;
import com.testword.utils.DateUtils;
import com.testword.enums.DateTimePatternEnum;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 学生信息表

 */
public class UserInfo implements Serializable {
	/**
	 * 学号
	 */
	private String studentId;

	/**
	 * 姓名
	 */
	private String nickName;

	/**
	 * 加入时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date joinTime;

	/**
	 * 最后一次登录时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date lastLoginTime;

	/**
	 * 0：启用；1：禁用
	 */
	@JsonIgnore
	private Integer status;

	/**
	 * 四级成绩
	 */
	private Integer cet4Score;

	/**
	 * 六级成绩
	 */
	private Integer cet6Score;

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getStudentId() {
		return this.studentId;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getNickName() {
		return this.nickName;
	}

	public void setJoinTime(Date joinTime) {
		this.joinTime = joinTime;
	}

	public Date getJoinTime() {
		return this.joinTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Date getLastLoginTime() {
		return this.lastLoginTime;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setCet4Score(Integer cet4Score) {
		this.cet4Score = cet4Score;
	}

	public Integer getCet4Score() {
		return this.cet4Score;
	}

	public void setCet6Score(Integer cet6Score) {
		this.cet6Score = cet6Score;
	}

	public Integer getCet6Score() {
		return this.cet6Score;
	}

	@Override
	public String toString() {
		return "学号:" + (studentId == null ? " 空 " : studentId) + ",姓名:" + (nickName == null ? " 空 " : nickName) + ",加入时间:" + (joinTime == null ? " 空 " : DateUtils.format(joinTime, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern())) + ",最后一次登录时间:" + (lastLoginTime == null ? " 空 " : DateUtils.format(lastLoginTime, DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern())) + ",0：启用；1：禁用:" + (status == null ? " 空 " : status) + ",四级成绩:" + (cet4Score == null ? " 空 " : cet4Score) + ",六级成绩:" + (cet6Score == null ? " 空 " : cet6Score);
	}
}